package com.gxgeek.springbootupgrade.drbean;

import lombok.Data;
import org.springframework.boot.CommandLineRunner;

/**
 * @author gaoxing
 * @create 2017-12-12 下午3:05
 */
@Data
public class UserService implements CommandLineRunner {
    private User user;


    public void test(){
        System.out.println(user.getUsername()+"--------------------");
    }

    @Override
    public void run(String... args) throws Exception {
        test();
    }
}
